package Manager;

import Entity.Role;
import java.util.ArrayList;

/**
 *
 * @author CONG
 */
public class RoleManager {

    private ArrayList<Role> listRole;

    public RoleManager() {
        listRole = new ArrayList<Role>();
    }

    public void getRolesList(ArrayList<Role> r) {
        listRole.addAll(r);
    }

    public int getSize() {
        return listRole.size();
    }

    public Role getRole(int index) {
        return listRole.get(index);
    }
}